#ifndef APPLYFRIENDITEM_H
#define APPLYFRIENDITEM_H

#include "listitembase.h"
#include "userdata.h"

#include <QWidget>
#include <memory>


namespace Ui {
class ApplyFriendItem;
}


// 好友申请条目类
class ApplyFriendItem : public ListItemBase
{
    Q_OBJECT

public:
    explicit ApplyFriendItem(QWidget *parent = nullptr);
    ~ApplyFriendItem();

    void setInfo(std::shared_ptr<ApplyInfo> apply_info);
    void showAddBtn(bool bshow);

    int getUid();

    QSize sizeHint() const override {
        return QSize(250, 70); // 返回自定义的尺寸
    }

signals:
    void sig_auth_friend(std::shared_ptr<ApplyInfo> apply_info);

private:
    Ui::ApplyFriendItem *ui;
    std::shared_ptr<ApplyInfo> m_apply_info;
    bool m_added;
};

#endif // APPLYFRIENDITEM_H
